<?php
if(php_sapi_name=='cli'){
    echo 'hello world!';
}